package com.anlogic.sdk.efuse.ui;

import org.eclipse.core.expressions.PropertyTester;

public class EnableEfuseTester extends PropertyTester {
	private final static String ENABLE_EFUSE = "enableEfuse";
	
	@Override
	public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
		if (!ENABLE_EFUSE.equals(property)) {
			return false;
		}
		
		String enable = System.getProperty("com.anlogic.sdk.efuse.enableEfuse", "");
		if (enable == null || enable.isEmpty() || !enable.equals("true")) {
			return false;
		}
		
		return true;
	}
}
